Renamed Gateway classes to Legacy.