Refactor some constants and methods regarding the app platform