UBI: kill homegrown endian macros