I think it makes sense to keep these definitions near the functions that use them.