refactoring a few utility methods with obsolote names in Protein class