Refactoring of config handling (old ASM lightning hook can be enabled).