Reduce indentation in _action_to_parts().