Refractor fitlers out into separate classes to clean up config.

Refractor dependency searching into own class.