optionsToClasses: Concentrate deprecated code in a single extension
Page: Add classes option

Fixes gh-7707