Removed duplicated code from Modizer.