Kilo refactoring and restructuring the L3 agent

Change-Id: I54f98746e5b8c8f1734c0e3f902d0901508f4511