Refactor: snippet dictionary does not keep the extend info now.