The methods useReflectionOptimizer and buildBytecodeProvider on Environment have been deprecated 6.2 and could be removed now.
The constants related to bytecode provider should also be cleaned up.