Refactoring, cleaning and documenting the binary package patch