Fix the removal method for obsolete information.

The project type, name, license and version are mandatory composer.json
fields. Therefore they have been reintroduced.
Extract removal of obsolete provide to separate subroutine and adapt tests.