Extract moment getters and setters into the units files.