Refactor xyz and lab calculations to methods