optionsToClasses: Concentrate deprecated code in a single extension
Textinput: Implement classes option

Fixes gh-7730