Moved filters to it's own file.

Conceal logic in creating filter terms.