Rather than repeating this several times, you can factor this out into its own method. That will help readability more, and not mix in details of how the spacing is determined with the rest of these methods.