My concern is more that these are two different functionalities so they should be in separate files (even if only used here). There's no downside to this because we bundle files together in prod anyways.