Stip out utility funcions into a separate class.
Name ids as ids.