Refactors :set_author into a separate function