refactoring Learn input groups for easier interface for Learn modules