Refactor lists controller.