[mips] Factor out unaligned store lowering code.