remove unused/unnecessary properties and entries.