Fish: Simplify helper functions for LZW.