Simplify model query in controller