Split indentation-related code into own module
Rework main script to use new module