Refactor listings filtering from controller into model to abide by 'fat models, skinny controllers' convention.