Removes object types from Spring tests.