So, looking into the quests tied to scanning in orbit, I'm not sure that I could figure out how to competently change the dialogue to allow a separate option to declare items, but I could make a separate craft recipe to turn contraband into "declared contraband" at an industrial workbench, that could then only be sold at kiosks, in the law stations around the system, or on the landing pads.