Improve reflection factory.