Put some common strings into functions.

Better shorter names and compilation errors than typos and runtime
errors.
Uncomment the code.

I do not remember why I commented it out in the first place...
Move validate status function to Utils.

Extension file should have only hooks defitions.