I see that in other places. Maybe we can have a helper method for this?