Moved the default objectinfos into a method

Saves duplicating them in 2 places