Avoid duplicate call to a method