Removed message function redefinition

Used functions and defines declared in global.php and functions.php
files.