Clean up CMD offset calculation view code for readability