Revert "Inline Kernel Building"

This reverts commit 65c0138f7b6dedaee59f0fdfaf7f9c7bb550c7a5.