Remove unused Rails internals (like AR)