Moved `locate()` from module `core` to `util`