Formatting, removed a large nested ternary that was hard to read.