Remove PHP 5.3-only code from class instantiator.