Use auto generated code for various definitions.

Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>