Beautify the BCH shift functions.