Create a spreadsheet/reference package and put these functions there. This prevents both duplication across the formula & spreadsheet packages and a cyclic reference.