Moved and renamed OnPremise classes and constants to Legacy.