Moved memory limits out of utils library
Reformatting