move filename to classname logic into helper module and let the caller decide