Cleanup featurecontext class.