Refactoring of Protocol object to migrate from int to long for ID