Refactoring: keep height in Flow object and calculate spacing on demand