The module name need not match the name of the subroutine. There is no "error" nor is there any "duplication". By seperating the subroutine into a named section is not duplicatng it but, rather, giving it more descriptive value. I will admit that I can see the point of your confusion though.
I have renamed the module to be more descriptive.