def METHOD_NAME(self):
    if self.direction in ("-X+X", "+X-X"):
        return 'X'
    if self.direction in ("-Y+Y", "+Y-Y"):
        return 'Y'
    if self.direction in ("-Z+Z", "+Z-Z"):
        return 'Z'