Refactoring. Using Mirror to invoke method instead of reflection.