remove local var declaration of constants in posts controller