async def METHOD_NAME(self, deployment, entity_id, address, type):
    if (
        deployment in self._deployments
        and entity_id in self._deployments[deployment][type]
    ):
        self._logger.debug(
            f'removing connection for deployment {deployment}/{type}/{entity_id} to {address}'
        )
        await self._deployments[deployment][type][entity_id].remove_connection(
            address
        )
        if not self._deployments[deployment][type][entity_id].has_connections():
            self._deployments[deployment][type].pop(entity_id)