Convert string-based class eval syntax to block based. This is safer and more readable.