Remove module specific code in LocalBot, code cleanup