The purpose of methanation reaction used in ammonia plants is to

1. remove $CO$ as it is catalyst poison
2. increase the amount of hydrogen
3. remove sulphur as it is a catalyst poison
4. utilize methane as a catalyst for ammonia synthesis