I have module with license based.I have to check license is valid or not in my all controllers.

Now Actually i'm placing my logic in each action.

Is there any better way to check logic & redirect to different page if license is not valid.