Share code in Remix with functions, not API endpoints

AKA, the easy way to share code