def METHOD_NAME(request, codelist):
    owner_choices = get_owner_choices(codelist, request.user)
    if request.method == "POST":
        return handle_post(request, codelist, owner_choices)
    return handle_get(request, codelist, owner_choices)