Removing redundant declarations