Removing redundant apply