Automatically removed using: $ git grep -l kernel_types | xargs sed -i '/^#include .kernel_types/d'
Also change references in dependencies to the net/gcoap.h include.