externalization of two huge one liners in utils