Instead of registerExtension, which you removed, add a construct to the class that sets the Extension

    public function __construct()
    {
        $this->extension = new UecodeQPushExtension();
    }