NYCCHKBK-3573 - Moved logic into a centralized util file so that it is re-usable and maintainable across.