I'd stick all the common code into a module (or however many it takes to logically group the code), and rationalise the scripts.
If the information in this post is inaccurate, or just plain wrong, don't just downvote - please post explaining what's wrong.
That way everyone learns.