Keep the handler independent of business logic 

It is always advisable to keep business logic outside the handler because this will decouple our business logic from the lambda function runtime environment, reuse the business logic functions, and make it easier to test our written unit test, as we discussed earlier in the chapter.