Simplify size calculation per data type.