Extract CellularAutomaton class
Extract Rule class
Create and inject rule from outside