Getting rid of unnecesary method in header file