remove old CodeContext constructor