Change signature of 2 methods of the kernel registration api to use an interface instead of an implementation.