Sequence clustering package refactoring