Quotients by Groupoids