Factor out feature profile check at OCPP command handling