Refactor remaining api_controller tests to use factories.