state/apiserver: finsied renaming and refactoring of EnvironCapabilities