Split Candy class into its own module