Move run_with_params to ApiController