Revert "Issue #2343677 by damiankloip, znerol, Fabianx: Fixed Stack middleware suffers from incomplete service construction."

This reverts commit c033857b110f9ed6d2f6dba84efaf959d25db951.
Issue #2343677 by damiankloip, znerol, Fabianx, pounard: Fixed Stack middleware suffers from incomplete service construction.

This reverts commit 39eb84fc38d550153d4dde068c84cbc12282a40c.
Issue #2329901 by lanchez, lauriii | davidhernandez: Move form classes from preprocess to templates.