Refactors helper