Separated conversion of size units into a separate function in utils