Refactoring /lfconfig command.