Complex sentence: It feeds on small mammals and birds and is considered a menace to poultry, though it primarily inhabits swamps and is nocturnal in habit.
Split into simpler sentences: It feeds on small mammals and birds and is considered a menace to poultry. It inhabits the swamps and is nocturnal in habit.