If you find yourself doing the same task in several different procedures, break that task out into a separate procedure and call this new procedure instead of including all the code everywhere you use it. In the event you need to change the way this procedure works, you will now only have to change it in one location rather than in many places throughout your project.