Moose code in line with best practice