Moved all private shared functions to a Helpers file