refactor: factor out OCPP params handling helpers