That entire config.g file is intended for RRF2.

I suggest you generate a new config file set for RRF3 with the config tool and customize from there.

https://configtool.reprapfirmware.org/Start