At the very beginning of the Configuration.h file you need to work through commenting out what you don’t need. there are instruction written into the code to guide you.
The other option is just to use the standard Marlin firmware.
// @section info
//#define WILSON_TYPE // comment this out if not wilson
#define WILSON_II_TYPE // comment this out if not wilson ii
#define MY_BEDLEVELING_DEFAULTS // comment this out to strip out all the bed leveling stuff
#define MJRICE_BEDLEVELING_RACK // include this (only) if using the rack-and-pinion aparatus for bed probing / leveling