Drop long output version of reverse_dependencies and lighten a query

This is a follow up on #540