Unified some interfaces that not unified.
Refactoring.
This change makes be able to specify the targeting version for REST API.
Refactoring.