Kept the original function in case someone was already calling it, or unhooking it or whatever, but now it calls three smaller individual functions. The functions are then tasked to do one job each, making maintenance easier, and giving structural elements that can be better documented with DocBlocks.