One of the most prominent critics of Venezuelan President Nicolas Maduro has been removed from office.