Refactor getters throughout the API.