Remove deprecated method in Nette 2.2.
Fix trait.