If you think it is 'legal' - then why not:) I thought that you won't like the idea of modifying the base kernel class - such things should always be done carefully.