Refactor method_missing