Minor refactoring of the create_activity method on models