Clean up in preparation for profile configuration.