Revert "Merge pull request #11416 from tigrish/master"

This reverts commit 9dc8aef084fc5ae7e3a396dd098d89da93d06fda, reversing
changes made to 02e8dae6279ea25312293a3eca777faf35139c4c.
Refactoring +class_attribute+ to make it more readable.