Factoring out helper so it can be accessed without grunt