Copy the site folder and subfolders to the target module. Change file names and tables names replacing (motion) by the name of your new module.