Refactor plumbings to use kernel instance