Use size_of constants from `SizeOf` instead of magic numbers