Move this into the Model. It's easier to test it ;) fat model, read about it.