Move code from AbstractTetrisPiece<T> to TetrisPiece.