fixed indenting

Refactored ha generation to its own static method so can use when not
creating yard.