Moved utillity method to different namespace.