qnli question: what were the walled forts of Fort William in Bengal, Fort St George in Madras and Bombay castle before they were forts? sentence: The major factories became the walled forts of Fort William in Bengal, Fort St George in Madras, and Bombay Castle.