Keep your codebase organized like a Swiss watch, not a dumpster fire.
Use meaningful variable names, not 'var_1234'.
Proceed to Step 2: Refactor with FrenzyExtract functions like you're extracting a good wine from a fine vintage.
Use functions with descriptive names, not 'do_something_with_this()'
Proceed to Step 1: Refactor the Refactoring