Get rid of reflection by using type hints. Set warn on reflection to true.