Move calculating the original feature profiles to refactor_config.