I would've thought we'd just pass in the dimension name and use that, instead of having explicit functions for x and y.