Gauging the higher-spin-like symmetries by the Moyal product