extract clone_settings()
extract clone_stages()
extract clone_permissions()
extract clone_flags()
test coverage on clone_settings(), clone_stages()