Best way to declutter a main.lua

My main.lua ile is getting rather big to scroll up/down.  Should I start moving functions into a main2.lua and link the functions like below.

local main2 = require( “main2” )

Func1 = main2.Func1

Func2 = main2.Func2

Func3 = main2.Func3

Is there a better way?

Have a lof of code inside the main is not good practice. I would use composer instead of that approach that you mentioned.

I am not using scenes/composer views as the app is a hybrid augmented reality app, there will be a bit of code called from main.lua but when loaded it won’t be recalled.

There is no problem with that. You can composer the same way. 

Have a lof of code inside the main is not good practice. I would use composer instead of that approach that you mentioned.

I am not using scenes/composer views as the app is a hybrid augmented reality app, there will be a bit of code called from main.lua but when loaded it won’t be recalled.

There is no problem with that. You can composer the same way.