Refactor to use respond_with.