Hoist a condition duped in every branch to the top of WorksController#set_author_attributes.