Cleaned all legacy stuff in resutil module.

Some time has passed and now should be safe to remove all ugly copy-paste that was hanging there for backwards-compatibility reasons.