Migrated minor methods to utils.