Refactoring get protocol method