Moves ports into a submodule

Moves ports and their associated tests into separate modules for
improved plugin readability.