small code refactoring about method-based service RTTI