MYLOC-107

Seems redundant to have a class constructor. This module makes sense to return the filter function instead.