Using server side app id instead of define as local constant. 

It's more flexible and can be reused across projects.