Try to partition LWM_GENERICS into multiple modules.