Extract classes to AMD modules.