Remove handling of @exportClass and @exportFunction

This is a follow-up to #930, removing functionality no longer in use.