Since removing build dependencies after installing PHP extensions (e.g. https://github.com/docker-library/wordpress/pull/267) seems to be a common task it would make sense to have such a functionality in the `docker-php-ext-*` scripts.