Using __method__ to remove the case and simplify the code