Combine two if statements in WorksController#set_author_attributes.