Doing refactoring.

Removed the DirFilter private class, it was only used once.
Replaced with inline anonymous class.