Splitting ip expansion in a more readable way.