Refactoring meta function