Deprecate legacy features in 3.2.x branch and remove them from the 4.2.x branch