refactor(location): moving interface to its own class