One reason for keeping it here is that it presently only gives a warning when it matters -- that is, when .onLoad or .onAttach is called. If the warning is moved into as.package, it'll give the warning even when there's no .onLoad or .onAttach function.