in reply to Thoughts on using subroutines to clean up code?
Follow the advice here, and you will be well equipped to move beyond subroutines and into modules and/or objects.