[Compass-ci] [PATCH compass-ci] lib/matrix2.rb: remove duplicate code