Move actual extension code to its own class

Authored by MGChecker on Apr 8 2018, 4:19 PM.

Description

Move actual extension code to its own class

To prepare for extension registration, the actual code of DeleteOwn that is hooked into core should be moved in its own class.

Bug: T174884
Change-Id: I47ea0dbd94605e708ca64056943e00ed98c37b04