remove unwanted code from LegacyController