[Constants] Added PSConstants class and refactored everything.