Generating theoretical accounts of mathematics teachers’ practices