Move dtb related functions to the dtb namespace