Migrated core internal commands to the internal/core file.