Refactor adjustMeta