Removal of `extern mod` and structural records

r? @brson