def _getPlatesAtAPO(plates):
    """Returns lists of plates at APO and outside it."""

    atAPO = []
    notAtAPO = []

    for plate in plates:
        if plate.getLocation() == 'APO':
            atAPO.append(plate)
        else:
            notAtAPO.append(plate)

    return atAPO, notAtAPO