* refactor: move functions to separate files * chore: remove inline function * chore: type error * fix: type error --------- Co-authored-by: Keith Williams <[email protected]>