If your plugins are adding the scripts (assuming they are since Legacy doesn’t have any on the homepage)…then you would probably need to adjust those plugins. If the plugins have hooks/filters etc that allow you to edit/move things around then you could add it inside your themes functions file. That’s about all I can think of. If you need more specifics you would probably need to contact the plugin developers to see how you can make those adjustments.