[WIP] Fix remove items layer in api metadata origin/develop

Status: created some unittests first, now ready for refactoring the metadata dto to a real dto and move the logic to assemblers