Refactored create user feature and profile feature