This code is created as a stored procedure, which is saved in a DBA maintenance database. Create a SQL Agent job that executes this proc daily, weekly, or monthly (DBA's choice) for automatic notifications. When the report is received, review the report for any database roles that can be removed from the server\instance.
The intention of this script is to assist with security maintenance and server cleanup. Deprecated database roles never need clog up the instance again.