Code duplication refactoring in Protein::Process