Ensures necessary dependencies are always included where applicable, as well as avoiding including dependencies where they aren't necessary.