Remove assumeTrusted and static assert