Restrict local variables when opening package source files