Ugh we have this method in so many places. Can we put it in its own module?