At the federal level, AFAIK most bills are ultimately drafted by staffers. Lawmakers very rarely draft the bill, they mostly just signal their intent and let the staffers pound out the details. Not saying there aren't a lot of lobby sponsored bills, but I believe volume wise the staffers are making most of the bills.