Abstract get_releases util for use in other tasks
Removed unused imports
prune_releases task