Refactoring out reflection calls.