Extract functions for reuse by the unindent command
Add unindent command and tests