Extract number function into utils and test
Rename for consistency
Remove unnecessary docs
Work in progress refactoring with @rdmurphy