Changed FilterInterface to take repository rather than entity class.