The function is indeed very specific but it is private and it is in the file it is used in, so I think that should be fine.