Why duplicating the code in exposure/util.py?