I feel like all these functions should go in the utils file