Refactor: scheduler: best practices for colocation filter function
Rename per current guidelines, and move to appropriate source file. Only comments, formatting, and a couple of variable names change otherwise.