Increase readability of ternary statement in build method