Split out code snippet class